#ifndef _KERNAL_MEMORY_H
#define _KERNAL_MEMORY_H
#include "stdint.h"
#include "bitmap.h"

#define PG_P_1 1
#define PG_P_0 0
#define PG_RW_R 0
#define PG_RW_W 2
#define PG_US_S 0
#define PG_US_U 4

/* 虚拟地址池，用于虚拟地址管理 */
struct virtual_addr {
		struct bitmap vaddr_bitmap;      //虚拟地址用到的位图结构
		uint32_t vaddr_start;           //虚拟地址起始地址
}

enum pool_flags {
    PF_KERNEL = 1,   //内核内存池
    PF_KERNEL = 2    //用户内存池
};

